#pragma once

#include "Parser/Parser.h"

namespace ICE_COVER
{
	class TaskResult : public GridData
	{
	public:
		String message;
		void setGridInfo(GridData& gridData);
		void writeToJson(String fileName);
		size_t validCell = 0;
		size_t calcCell = 0;
		float minValue = 9999.0, maxValue = -9999.0;
	};

	class Task
	{
	public:
		void start();
		int clear(const StringVector& currentFiles);
		std::shared_ptr<TaskResult> preCalclateResult;
		std::shared_ptr<TaskResult> doCalculate(String file);
	};
}
